home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Development / Source / MSG Demo 1.2 Source / MSG Demo ƒ / MSG Shell ƒ / util.c < prev    next >
Text File  |  1993-11-10  |  1KB  |  45 lines

  1. /**********************************************************************\
  2.  
  3. File:        util.c
  4.  
  5. Purpose:    This module handles standard memory copying and comparing.
  6.  
  7.  
  8. MSG Demo -- graphic effects demonstration program
  9. Copyright (C) 1992-3 Mark Pilgrim & Dave Blumenthal
  10.  
  11. This program is free software; you can redistribute it and/or modify
  12. it under the terms of the GNU General Public License as published by
  13. the Free Software Foundation; either version 2 of the License, or
  14. (at your option) any later version.
  15.  
  16. This program is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19. GNU General Public License for more details.
  20.  
  21. You should have received a copy of the GNU General Public License
  22. along with this program in a file named "GNU General Public License".
  23. If not, write to the Free Software Foundation, 675 Mass Ave,
  24. Cambridge, MA 02139, USA.
  25.  
  26. \**********************************************************************/
  27.  
  28. #include "util.h"
  29.  
  30. void Mymemcpy(Ptr output, Ptr input, unsigned char len)
  31. {
  32.     unsigned char    i;
  33.     
  34.     for (i=0; i<len; i++)
  35.         output[i]=input[i];
  36. }
  37.  
  38. void Mymemset(Ptr output, int value, unsigned char len)
  39. {
  40.     unsigned char    i;
  41.     
  42.     for (i=0; i<len; i++)
  43.         ((char*)output)[i]=(char)value;
  44. }
  45.